\hypertarget{state_8hpp}{\section{include/state.hpp \-File \-Reference}
\label{state_8hpp}\index{include/state.\-hpp@{include/state.\-hpp}}
}


\-Class for storing the state of the walker. \-State space for walker is $ \mathcal{H}_C\otimes\mathcal{H}_V $, where $ \mathcal{H}_C $ is $ d $-\/dimensional coin space, where $ d $ is the degree of the graph, and where $ \mathcal{H}_V $ is $\vert V \vert$-\/dimensional position space, where $ V$ ist the set of vertices.  


{\ttfamily \#include $<$map$>$}\*
{\ttfamily \#include $<$boost/numeric/ublas/vector.\-hpp$>$}\*
{\ttfamily \#include \char`\"{}shift.\-hpp\char`\"{}}\*
{\ttfamily \#include \char`\"{}coin.\-hpp\char`\"{}}\*
\-Include dependency graph for state.\-hpp\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{state_8hpp__incl}
\end{center}
\end{figure}
\subsection*{\-Classes}
\begin{DoxyCompactItemize}
\item 
class \hyperlink{classstate}{state$<$ T $>$}
\end{DoxyCompactItemize}
\subsection*{\-Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename T $>$ }\\\hyperlink{classstate}{state}$<$ \-T $>$ \hyperlink{state_8hpp_a2dbee0f8557d8030d2424ae0a5d9b363}{operator$\ast$} (const \hyperlink{classshift}{shift}$<$ \-T $>$ \&\-S, \hyperlink{classstate}{state}$<$ \-T $>$ psi)
\item 
{\footnotesize template$<$typename T $>$ }\\\hyperlink{classstate}{state}$<$ \-T $>$ \hyperlink{state_8hpp_a2c36249349847511eb5da9441660e1b5}{operator$\ast$} (const \hyperlink{classcoin}{coin}$<$ \-T $>$ \&\-C, \hyperlink{classstate}{state}$<$ \-T $>$ psi)
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-Class for storing the state of the walker. \-State space for walker is $ \mathcal{H}_C\otimes\mathcal{H}_V $, where $ \mathcal{H}_C $ is $ d $-\/dimensional coin space, where $ d $ is the degree of the graph, and where $ \mathcal{H}_V $ is $\vert V \vert$-\/dimensional position space, where $ V$ ist the set of vertices. \begin{DoxyAuthor}{\-Author}
\-Kimmo \-Luoma $<$kimmo@\-P\-H\-O\-T\-O\-N3$>$ 
\end{DoxyAuthor}
\begin{DoxyDate}{\-Date}
\-Thu \-Sep 27 16\-:58\-:57 2012
\end{DoxyDate}
\-Key of the map matches the vertice and vector corresponds to the internal degrees of freedom e.\-g. edges. 

\subsection{\-Function \-Documentation}
\hypertarget{state_8hpp_a2dbee0f8557d8030d2424ae0a5d9b363}{\index{state.\-hpp@{state.\-hpp}!operator$\ast$@{operator$\ast$}}
\index{operator$\ast$@{operator$\ast$}!state.hpp@{state.\-hpp}}
\subsubsection[{operator$\ast$}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ {\bf state}$<$\-T$>$ operator$\ast$ (
\begin{DoxyParamCaption}
\item[{const {\bf shift}$<$ \-T $>$ \&}]{\-S, }
\item[{{\bf state}$<$ \-T $>$}]{psi}
\end{DoxyParamCaption}
)}}\label{state_8hpp_a2dbee0f8557d8030d2424ae0a5d9b363}
\-Action of the shift operator to the state $ \vert\psi\rangle $. $ \vert\psi'\rangle=S\vert\psi\rangle $. \-This function makes extra copy.


\begin{DoxyParams}{\-Parameters}
{\em \-S} & $ S $ shift operator. \\
\hline
{\em psi} & $ \vert\psi\rangle $ state.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
$ \vert\psi'\rangle = S\vert\psi\rangle$. 
\end{DoxyReturn}
\hypertarget{state_8hpp_a2c36249349847511eb5da9441660e1b5}{\index{state.\-hpp@{state.\-hpp}!operator$\ast$@{operator$\ast$}}
\index{operator$\ast$@{operator$\ast$}!state.hpp@{state.\-hpp}}
\subsubsection[{operator$\ast$}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ {\bf state}$<$\-T$>$ operator$\ast$ (
\begin{DoxyParamCaption}
\item[{const {\bf coin}$<$ \-T $>$ \&}]{\-C, }
\item[{{\bf state}$<$ \-T $>$}]{psi}
\end{DoxyParamCaption}
)}}\label{state_8hpp_a2c36249349847511eb5da9441660e1b5}
\-Action of the coin operator to the state $ \vert\psi\rangle $. $ \vert\psi'\rangle=C\vert\psi\rangle $. \-This function makes extra copy.


\begin{DoxyParams}{\-Parameters}
{\em \-C} & coin operator class\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
$ \vert\psi'\rangle = C\vert\psi\rangle$. 
\end{DoxyReturn}
